from aiogram.filters import BaseFilter
from aiogram.types import Message

from settings import settings


class IsAdmin(BaseFilter):
    def __init__(self) -> None:
        self.userIds = [settings.bots.admin_id]

    async def __call__(self, message: Message) -> bool:
        return message.from_user.id in self.userIds
                